<div class="left-nav">
    <div id="side-nav">
        <ul id="nav">
            <li class="list">
                <a href="{{url('Admin/Index/index')}}">
                    <i class="layui-icon">&#xe761;</i>
                    欢迎页面
                    <i class="layui-icon nav_right">&#xe603;</i>
                </a>
            </li>
            @foreach($menus as $k => $v)
                <li class="list" >
                    <a href="javascript:void(0);">
                        <i class="layui-icon">{{$v['m_icon']}}</i>
                        {{$v['m_name']}}
                        <i class="layui-icon nav_right">&#xe603;</i>
                    </a>
                    <ul class="sub-menu">
                        @foreach($v['arr'] as $kk => $vv)
                        <li class="{{$vv['c_func']}}">
                            <a href={{url($vv['c_route'])}}>
                                <i class="layui-icon">&#xe602;</i>
                                {{$vv['c_name']}}
                            </a>
                        </li>
                        @endforeach
                    </ul>
                </li>
            @endforeach
        </ul>
    </div>
</div>
<script>
    var menu = '{{ $menu or ""}}';
    if(menu){
        $('.'+menu).addClass('current').parent().addClass('opened').parent().addClass('open');
        setTimeout(function(){
            $('.'+menu).parent().siblings('a').find('.nav_right').html('&#xe61a;');
        },100);
    }
</script>